from Data import *
from Eigenfaces import *
from Classifier import *

train = TrainingSet("train")
ef = Eigenfaces(train.matrix)
c = Classifier(ef, train.matrix, train.labels)
test = TestSet("test")

errors = 0
print "Real\tChoice"
for (real, choice) in zip(test.labels, c.classify(test.matrix)):
	print "%s\t%s" % (real, choice)
	if real != choice:
		errors += 1
print "Errors: %d" % errors
